package com.hl.card.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.hl.card.common.persistence.model.DisMemberInfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 用户表 Mapper 接口
 * </p>
 *
 * @author huangpu
 * @since 2018-05-08
 */
public interface DisMemberInfoMapper extends BaseMapper<DisMemberInfo> {
	
	
	public int updateMemberInfo(DisMemberInfo disMemberInfo);

	public int addMemberInfo(DisMemberInfo disMemberInfo);


	public List<DisMemberInfo> queryDisMemberInfoByParentId(Map<String, Object> map);

	public  int queryDisMemberInfoByParentIdCount(String parent_id);

	public List<DisMemberInfo> queryUserInfoByParentId(Map<String, Object> map);

	public  int queryUserInfoByParentIdCount(String parent_id);


	public DisMemberInfo queryDisMemberInfoById(String user_id);


	DisMemberInfo queryDisMemberInfo(DisMemberInfo disMemberInfo);

	DisMemberInfo queryDisMemberInfo(String disPayPassword);

	int updateDisPayPasswordById(DisMemberInfo dmi);

	DisMemberInfo selectDisMemberInfo(DisMemberInfo dmi);

	public int queryDisMemberInfoCode(String code);

	List<DisMemberInfo> selectPartner(Map<String, Object> map);

	void stopUse(Integer id);

	void use(DisMemberInfo disMemberInfo);

	DisMemberInfo selectByPartnerId(Integer id);

	List<DisMemberInfo> selectPartnerExcel(Map<String, Object> map);

	public int saveDisPayPassword(String disUserId, String disPayPassword);

	public int saveDisPayPassword(DisMemberInfo dmi);

	public DisMemberInfo selectDisMemberInfoByUserId(String userId);

}








